package com.kaifamiao.demo.d0801.pm;

public interface Human {

    void printColor();

    void printGender();
}
interface Man extends Human {

    default void printGender(){
        System.out.println("男");
    }
}

interface Woman extends Human{

    default void printGender(){
        System.out.println("女");
    }
}

class BlackMan implements Human, Man {

    @Override
    public void printColor() {
        System.out.println("black");
    }
}

class BlackWoman implements Human, Woman {

    @Override
    public void printColor() {
        System.out.println("black");
    }
}

class WhiteMan implements Man{

    @Override
    public void printColor() {
        System.out.println("white");
    }
}

class WhiteWoman implements Woman{

    @Override
    public void printColor() {
        System.out.println("white");
    }
}
